package com.mla.fastdfs.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mla.fastdfs.dto.RoleDto;
import com.mla.fastdfs.dto.RoleSaveDto;
import com.mla.fastdfs.pojo.Role;

import java.util.List;

/**
 * @author Jun
 * @version v1.0
 * @date 2020-08-17
 */
public interface RoleMapper extends BaseMapper<Role> {

    List<Role> selectByRecord(Role record);

    List<Role> checkRepeat(RoleSaveDto record);

    RoleDto getByRole(String userId);

    Role checkRoleNameExist(Role record);
}